<template>
	<view class="address">
		<view class="info-area">
			<view class="item">
				<view class="text">收货人</view>
				<view class='ipt'><input placeholder='真实姓名（不能超过24个字）' placeholder-class='placeholder'></input></view>
			</view>
			<view class="item">
				<view class="text">联系电话</view>
				<view class='ipt'><input placeholder='收件人手机号码' placeholder-class='placeholder'></input></view>
			</view>
			<view class="item">
				<view class="text">所在地区</view>
				<view class="add">
					<view class='ipt'><input placeholder='请选择收货地址所在省/市/区' placeholder-class='placeholder'></input></view>
					<picker class="iconfont icon-xiangxia"></picker>
				</view>
			</view>
			<view class="item">
				<view class="text">详细地址</view>
				<view class='ipt'><input placeholder='请输入详细地址' placeholder-class='placeholder'></input></view>
			</view>
			
		</view>
		
		<view class="box">
			<textarea class="text-frame" placeholder="粘贴文本至此处，可自动识别信息并填写" placeholder-class='place'></textarea>
			<view class="copy-btn">
				<view class="paste">粘贴</view>
				<view class="identify">识别</view>
			</view>
		</view>
		
		<view class="setting">
			<view class="setting-text">设置为默认地址</view>
			<view class="switch">
				<u-switch v-model="switchFlag" size="40" ></u-switch>
			</view>
		</view>
		
		<view class="fixed-sure">
			<view class="sure-btn">确定并创建地址</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				switchFlag: true
			};
		},
		methods: {
			
		}
	};
</script>

<style lang="scss">
	.address {
		position: relative;
		padding: 24rpx;
		padding-bottom: 120rpx;
	}
	.info-area {
		padding: 0 24rpx;
		background-color: #ffffff;
		border-radius: 24rpx;
		
		.item {
			display: flex;
			padding: 48rpx 0;
			align-items: center;
			border-bottom: 2rpx solid #F5F5F5;
			
			.text {
				font-size: 28rpx;
				font-weight: bold;
				color: #1F1F1F;
				width: 176rpx;
			}
			
			.placeholder {
				font-size: 28rpx;
				color: #999999;
			}
			
			.add {
				flex: 1;
				display: flex;
				align-items: center;
				
				.ipt {
					width: 100%;
					
					.iconfont {
						font-size: 24rpx;
						transform: scale(0.9);
						
					}
				}
				
				
				
			}
		}
	}
	
	.box {
		position: relative;
		margin: 24rpx 0;
		padding: 0 24rpx;
		height: 296rpx;
		padding-top: 28rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		
		.text-frame {
			height: 160rpx;
			width: 100%;
		}
		
		.place {
			font-size: 28rpx;
			color: #999999;
		}
		
		.copy-btn {
			position: absolute;
			bottom: 24rpx;
			right: 24rpx;
			display: flex;
			justify-content: right;
			
			.paste {
				display: flex;
				align-items: center;
				justify-content: center;
				margin-right: 24rpx;
				width: 120rpx;
				height: 60rpx;
				border-radius: 28rpx;
				border: 2rpx solid #39CCC2;
				font-size: 28rpx;
				color: #39CCC2;
			}
			
			.identify {
				text-align: center;
				width: 120rpx;
				height: 60rpx;
				line-height: 60rpx;
				background: #39CCC2;
				border-radius: 28rpx;
				font-size: 28rpx;
				font-weight: bold;
				color: #FFFFFF;
			}
		}
	}
	
	.setting {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-left: 24rpx;
		padding-right: 26rpx;
		height: 124rpx;
		line-height: 124rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		
		.setting-text {
			font-size: 28rpx;
			font-weight: bold;
			color: #1F1F1F;
		}
		
		.switch {
			width: 72rpx;
			height: 40rpx;
		}
	}
	
	.fixed-sure {
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 2;
		padding: 24rpx;
		width: 100%;
		height: 120rpx;
		background-color: #fff;
		
		.sure-btn {
			width: 100%;
			height: 80rpx;
			line-height: 80rpx;
			background: linear-gradient(90deg, #71EBDA 0%, #39CCC2 100%);
			border-radius: 44rpx;
			font-size: 32rpx;
			font-weight: bold;
			color: #FFFFFF;
			text-align: center;
		}
	}
	
	
</style>